0 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>==================<CTRL-M>FLEX TYPE (DEMO) <CTRL-M>BY MARK SIMONSEN <CTRL-M>COPYRIGHT (C) 1982<CTRL-M>==================
20 IF PEEK(ADDR -9) = 3 AND PEEK(ADDR -8) = 2 AND PEEK(ADDR -7) = 1 THEN 40
30 HOME : PRINT "THIS PROGRAM EXPECTS A 70 COLUMN": PRINT "CHARACTER SET TO BE LOADED IN": PRINT "POSITION 1, A 56 COLUMN CHARACTER SET": PRINT "IN POSITION 2, AND A 40 COLUMN": PRINT "CHARACTER SET IN POSITION 3.": STOP
510 VTAB 1: HTAB 10: INVERSE : PRINT " UPPER AND LOWER CASE ": NORMAL
520 PRINT : PRINT "Whether you are typing in your newest": PRINT "program or running an old favorite,": PRINT "lower case letters are right at your": PRINT "fingertips."
530 PRINT : PRINT "Now with Flex Type, you no longer need": PRINT "to buy a LOWER CASE ADAPTER."
590 PRINT : PRINT "After all, would you rather have two-": PRINT "thirds of a character set?": SPEED= 255: PRINT :K = 2: GOSUB 1120: PRINT : SPEED= SPD: PRINT "Or the entire set?": SPEED= 255: PRINT :K = 3: GOSUB 1120
600 GOSUB 1080
610 POKE 34,0: GOSUB 1110
620 VTAB 1: HTAB 11: INVERSE : PRINT " SPECIAL CHARACTERS ": NORMAL : PRINT : PRINT "In the standard ASCII Character Set": PRINT "there are 10 Special Characters."
630 VTAB 6: HTAB 2: PRINT Z$"K - LEFT BRACKET"
640 HTAB 2: PRINT Z$"L - BACK SLASH"
650 HTAB 2: PRINT Z$"M - RIGHT BRACKET"
660 HTAB 2: PRINT Z$"N - CARET"
670 HTAB 2: PRINT Z$"O - UNDERSCORE"
680 VTAB 6: HTAB 22: PRINT Z$"k - LEFT BRACE"
690 HTAB 22: PRINT Z$"l - VERTICAL BAR"
700 HTAB 22: PRINT Z$"m - RIGHT BRACE"
710 HTAB 22: PRINT Z$"n - TILDE"
720 HTAB 22: PRINT Z$"o - RUB"
730 PRINT : PRINT "Normally you have access to two of these";: PRINT "Special Characters from the keyboard, ]"
740 PRINT "and ^."
750 PRINT : PRINT "And by using the CHR$ function available";: PRINT "in Applesoft, you can print three": PRINT "others, " CHR$(91)", " CHR$(92)", and " CHR$(95)"."
770 PRINT : PRINT "With Flex Type, you can type all ten of": PRINT "these Special Characters from the": PRINT "keyboard!"
780 GOSUB 1080: GOSUB 1060
790 HGR2 : HCOLOR= 3: VTAB 1: HTAB 8: INVERSE : PRINT " MIXED GRAPHICS AND TEXT ": NORMAL : PRINT : PRINT "You are about to see an example of Flex": PRINT "Type's ability to combine graphics and"
800 PRINT "text on the same screen."
810 PRINT : PRINT "As you will see, besides combining text": PRINT "and pictures you can also plot anywhere": PRINT "you like."
820 GOSUB 1080: SPEED= 255: HOME : PRINT : PRINT D$"BLOAD DEMO.PIC,A$4000": VTAB 21: HTAB 1: SPEED= SPD
830 PRINT "You can write down here, where you would";: PRINT "normally expect to see text."
840 VTAB 1: HTAB 1: PRINT "Or you can write up here, where you": PRINT "don't expect to see it.": VTAB 14: HTAB 9: PRINT "And you can even put text"
850 FOR I = 1 TO 5: READ X,Y: HPLOT X,Y: NEXT I: DATA 235,108,235,112,232,116,226,118,219,119
860 FOR I = 1 TO 25:X = X -7: HPLOT X,Y: NEXT I
870 FOR I = 1 TO 8: READ X,Y: HPLOT X,Y: NEXT I: DATA 37,118,30,116,27,109,27,102,26,103,25,104,28,103,29,104
890 VTAB 23: HTAB 1: PRINT "If having so much freedom bothers you,": PRINT "you can always limit yourself to the": PRINT "standard four lines of text at the": PRINT "bottom of the screen without affecting"
900 PRINT "the rest of the picture or causing it to";: PRINT "scroll."
910 GOSUB 1080: POKE 34,0: GOSUB 1160
920 VTAB 1: HTAB 1: INVERSE : PRINT " EDITING AND CURSOR CONTROL ": NORMAL : PRINT "Flex Type supports all Escape Sequences,";: PRINT "editing functions (arrow keys), and Zero";: PRINT "Page window pokes. It is completely"
930 PRINT "compatible with PLE and GPLE also."
940 PRINT : INVERSE : PRINT " PROGRAM CONTROL ": NORMAL : PRINT "Flex Type supports all Applesoft": PRINT "commands and correctly interprets and"
960 PRINT : INVERSE : PRINT " CHARACTER SETS ": NORMAL : PRINT "Flex Type allows you to define your own": PRINT "character sets or choose from several": PRINT "already defined sets."
970 VTAB 20: PRINT "There is no limit to what you can do": PRINT "with FLEX TYPE ! "
980 SPEED= 255
990 FOR I = 1 TO 20: VTAB 21: HTAB 6:TGGLE = NOT TGGLE: NORMAL : IF (TGGLE) THEN INVERSE
1000 PRINT " FLEX TYPE ! ": FOR J = 1 TO 100: NEXT
1010 IF I = 10 OR I = 20 THEN PRINT N$;
1020 NEXT : END
1060 HOME : RETURN
1070 FOR I = 1 TO LEN(X$): VTAB VP: HTAB HP: PRINT LEFT$(X$,I);: INVERSE : PRINT " ";: NORMAL : NEXT I: VTAB VP: HTAB HP: PRINT X$;" ": RETURN
1080 SPEED= 255: POKE -16368,0: HTAB 4: VTAB 24: PRINT "<SPACE> TO CONTINUE, <Q> TO QUIT ";: GET X$: IF X$ = "Q" THEN POP : GOTO 1170
1085 SPEED= SPD: RETURN
1090 HOME : RETURN
1100 HOME : RETURN
1110 HOME : RETURN
1120 FOR I = 1 TO K: PRINT SPC( 4 -1 *(I = 1));: FOR J = 0 TO 31: PRINT CHR$(J +I *32);: NEXT J: PRINT : NEXT I: RETURN
1130 HP = PEEK(252)
1140 PRINT X$;
1150 LX = LEN(X$):VP = PEEK(37) +1: HPLOT HP *7,VP *8 TO (HP +LX) *7 -2,VP *8: RETURN
1160 HOME : RETURN
1170 SPEED= 255: POKE 216,0: NORMAL : POKE 34,0: VTAB 23: END
1180 FOR I = 1 TO J: VTAB VP: HTAB I:X$ = STR$(I): IF LEN(X$) = 1 THEN X$ = "0" +X$
9999 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>==================<CTRL-M>FLEX TYPE (DEMO) <CTRL-M>BY MARK SIMONSEN <CTRL-M>COPYRIGHT (C) 1982<CTRL-M>==================